﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using PayPalCheckoutSdk.Orders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.DictionariesModel
{
    /// <summary>
    /// 字典信息表
    /// </summary>
    [Table("tb_dictionariesList")]
    public class Dictionarieslist : AuditedEntity<int>,ISoftDelete
    {
        /// <summary>
        /// 存入值
        /// </summary>
        [Required, Display(Name = "存入值")]
        public string Value { get; set; }
        /// <summary>
        /// 显示值
        /// </summary>
        [Required, Display(Name = "显示值")]
        public string Text { get; set; }
        /// <summary>
        /// 排序id
        /// </summary>
        [Display(Name = "排序id")]
        public int? Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
        //导航属性
        public Dictionaries Dictionaries { get; set; }

        public Dictionarieslist() { }
        /// <summary>
        /// 赋值
        /// </summary>
        /// <param name="detail"></param>
        public Dictionarieslist(Dictionarieslist detail)
        {
            Value = detail.Value;
            Text = detail.Text;
            Sort = detail.Sort;
            Remark = detail.Remark;
        }
        public bool IsDeleted { get; set; }
    }
}
